import {rand} from './rand.js';

export function percent(p){
    let num = rand(1, 100);
    if(num <= p){
        return true;
    }else{
        return false;
    }
}

